    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
        font-family: 'Poppins', sans-serif;
      background: hsl(0, 0%, 100%);
    }

    nav {
      position: sticky;
      top: 10px;
      z-index: 1000;
      max-width: 1520px;
      margin: 30px auto;
      padding: 1.2rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #ffffff;
      border-radius: 50px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
      border: 1px solid #a1a1a1;
    }

    .logo {
      font-size: 1.7rem;
      font-weight: bold;
      color: #2c3e50;
    }

    .nav-center {
      display: flex;
      gap: 2rem;
    }

    .nav-center a {
      position: relative;
      text-decoration: none;
      color: #2c3e50;
      font-weight: 500;
      font-size: 15px;
      padding: 6px 0;
      transition: color 0.3s ease;
    }

    .nav-center a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0%;
      height: 2px;
      background-color: #4a74ff;
      transition: width 0.3s ease;
    }

    .nav-center a:hover::after {
      width: 100%;
    }

    /* ✅ Right Side Rounded Button */
    .nav-right a {
      text-decoration: none;
      background: #4a74ff;
      color: #fff;
      padding: 10px 22px;
      border-radius: 50px;
      font-weight: 500;
      font-size: 15px;
      box-shadow: 0 4px 12px rgba(74, 116, 255, 0.3);
      transition: all 0.3s ease;
    }

    .nav-right a:hover {
      background: #355de0;
      transform: translateY(-1px);
    }
        /* ─── Search Bar ───────────────────────────── */
    .search-box{
        position:relative;
        display:flex;
        align-items:center;
    }
    .search-box input{
      width:200px;
      max-width:60vw;
      padding:9px 40px 9px 16px;
      border:1px solid #bfc9ff;
      border-radius:50px;
      font-size:14px;
      transition:all .3s ease;
    }
    .search-box input::placeholder{
        color:#9aa2d4;
    }
    .search-box input:focus{
      outline:none;border-color:#4a74ff;
      box-shadow:0 0 0 3px rgba(74,116,255,.25);
    }
    /* search icon */
    .search-box::after{
      content:'🔍'; /* simple emoji icon */
      position:absolute;right:14px;pointer-events:none;
      font-size:16px;color:#6d7be9;
    }


    @media (max-width: 768px) {
      nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        border-radius: 25px;
      }

      .nav-center {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
      }

      .nav-right a {
        width: 100%;
        text-align: center;
      }
     .search-box input{width:100%;}

    }
    /* --- Previous link --- */
    .back-link{
  position:absolute;
  top:190px;
  right:230px;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  font-size:.95rem;
  color:#333;
  text-decoration:none;
  transition:transform .25s ease;
  
}
.back-link:hover{transform:translateX(4px)}
.back-link img{width:35px;height:35px;display:block}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Grid Layout */
.box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease;
  margin-top: 80px;
}

/* Card Base */
.card {
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0;
  animation: cardFade 0.6s ease forwards;
  height: 200px;
  padding:45px;
  margin-top: 80px;
}
.card1 a{
    text-decoration: none;
    color: white;
}
.card2 a{
    text-decoration: none;
    color: white;
}


.card h3 {
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Card Images */
.card .img-wrap img {
  width: 90px;
  height: auto;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
  border-color: #ffffff66;
}

.card:hover img {
  transform: scale(1.1);
}

/* Gradient Backgrounds */
.card1 {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.card2 {
  background: linear-gradient(135deg, #f97316, #fb923c);
}
.card3 {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.card4 {
  background: linear-gradient(135deg, #9333ea, #a855f7);
}
.card5 {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.card h3:hover {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
  text-decoration: underline;
}

.card h3 .icon {
  font-size: 18px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.card h3:hover .icon {
  transform: rotate(8deg) scale(1.2);
}


/* Entrance Animations */
@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive tweak */
@media (max-width: 768px) {
  .box-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
